package com.eos.common.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.eos.common.tool.DataCacheUtil;
import com.eos.common.tool.WebStartServiceThread;

/**
 * 系统启动自动加载本servlet，然后启动加载系统所有缓存数据
 * 
 * @author ThinkPad
 * 
 */
public class SystemAutoCacheServlet extends HttpServlet {

	private static final long serialVersionUID = 3139123881484435158L;

	/**
	 * 加载系统缓存数据
	 */
	@Override
	public void init() throws ServletException {
		new WebStartServiceThread().start();// 启动后台线程加载资源文件与xml文件数据
		DataCacheUtil.initCacheMap();
		///Thread.currentThread().sleep(10000);
	}
}
